package com.kupurui.asteacher.adapter;

import android.content.Context;

import com.android.frame.adapter.CommonAdapter;
import com.android.frame.adapter.ViewHolder;
import com.kupurui.asteacher.R;
import com.kupurui.asteacher.bean.ExamAboutInfo;

import java.util.List;

/**
 * Created by Administrator on 2017/7/21.
 */

public class ExamAboutAdapter extends CommonAdapter<ExamAboutInfo> {
    public ExamAboutAdapter(Context context, List<ExamAboutInfo> mList, int itemLayoutId) {
        super(context, mList, itemLayoutId);
    }

    @Override
    public void convert(ViewHolder holder, ExamAboutInfo item, int positon) {
        holder.setTextViewText(R.id.tv_title,item.getTitle());
        holder.setTextViewText(R.id.tv_time,item.getTime());
        holder.setTextViewText(R.id.tv_grade,item.getScore()+"分");
    }
}
